package com.mapper;

import com.pojo.Stopcarmoney;
import com.vo.LineVo;
import com.vo.StopcarmoneyPageVo;
import com.vo.StopcarmoneyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface StopcarmoneyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Stopcarmoney record);

    int insertSelective(Stopcarmoney record);

    Stopcarmoney selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Stopcarmoney record);

    int updateByPrimaryKey(Stopcarmoney record);

    List<Stopcarmoney> selectall(StopcarmoneyPageVo stopcarmoneyPageVo);

    /***
     * 添加停车费
     * @param stopcarmoneyVo
     * @return
     */
    public int addCarMoney(StopcarmoneyVo stopcarmoneyVo);

    /***
     * 业主查询未支付的停车费
     * @param ownerphone
     * @return
     */
    public List<Stopcarmoney> OwnerSelectStopCarByOwnerphone(String ownerphone);

    /***
     * 用户完成缴费将状态改为1
     * @param id
     * @return
     */
    public int updateIsNoById(Integer id);


    /***
     * 是否缴费
     * @param
     * @return
     */
    public Stopcarmoney OwnerSelectStopCarBy(@Param("parklotname") String parklotname,@Param("parkname") String parkname);

    /**
     * line
     */
    public List<LineVo> selectline();
    public List<Stopcarmoney> OwnerSelectStopCar(StopcarmoneyVo stopcarmoneyVo);
}